package com.haust.swiper.controller;

import com.haust.commons.pojo.HaustResult;
import com.haust.swiper.service.PortalSwiperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 门户轮播控制器
 */
@RestController
@CrossOrigin
public class PortalSwiperController {
    @Autowired
    private PortalSwiperService portalSwiperService;

    /**
     * 通过广告的类型id获取，获取 该类型的所有广告信息
     * @return
     */
    @GetMapping("/portal/showBigAd")
    public HaustResult showBigAd(){
      return portalSwiperService.showBigAd();
    }

}
